package com.itheima02;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test04 {
    public static void main(String[] args) throws IOException {
        String fos = "HomeWork13\\dir\\e.txt";
        String fis = "HomeWork13\\dir\\d.txt";

        FileInputStream fis1 = new FileInputStream(fis);
        FileOutputStream fos1 = new FileOutputStream(fos);

        byte[] b = new byte[3];
        int c;
        while ((c = fis1.read(b)) != -1) {
            fos1.write(b, 0, c);
        }
        fis1.close();
        fos1.close();
    }
}
